package org.jeeasy.generate.domain.dto;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
@NoArgsConstructor
public class GeneratorDTO {
    private String tableId;
    private String author;

    private List<GeneratorFile> files;

    public GeneratorDTO(String tableId, String author) {
        this.tableId = tableId;
        this.author = author;
    }

    @Data
    @Accessors(chain = true)
    public static class GeneratorFile {
        private String templateType = "default";
        private String pkg;
        private String path;
        private String type;
        private String template;
        private String templateContent;
        private String outputName;
        private String className;

    }
}
